<template>
  <div class="tagsDetailOuter" :style="{ background: `url('${bgImg}') no-repeat`, backgroundSize: 'cover' }">
    <HeaderPage :headerNavindex="5" />
    <FooterPage :fixed="true" />

    <div class="tagsDetailMain">
      <h2>标签-vue(<span>48</span>)</h2>

      <div class="tagsDetail_itemOuter">
        <div class="tagsDetail_item">
          <p>使用......技术，实现......功能</p>
          <span>2023/06/06</span>
        </div>
        <div class="tagsDetail_item">
          <p>使用......技术，实现......功能</p>
          <span>2023/06/06</span>
        </div>
      </div>

      <div class="fenye">
        分页
      </div>
    </div>

  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

import HeaderPage from '../../../components/HeaderPage.vue'
import FooterPage from '../../../components/FooterPage.vue';

// 背景
let bgImg = ref('http://nevergiveupt.top/category.jpg')

</script>

<style lang="scss" scoped>
.tagsDetailOuter {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: white;
  position: relative;
  top: 0;
  padding-top: 80px;

  .tagsDetailMain {
    width: 60%;
    margin: 0 auto;
    background-color: rgba(167, 167, 167, .95);
    margin-top: 60px;
    padding-bottom: 10px;

    h2 {
      padding: 10px 10px;
      border-bottom: 1px solid orange;
    }

    .tagsDetail_itemOuter {
      max-height: 380px;
      overflow-y: auto;

      // 滚动条样式
      &::-webkit-scrollbar {
        // 滚动条整体部分，用来设置宽高啥的
        width: 4px;
      }

      &::-webkit-scrollbar-thumb {
        // 滚动的滑块
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, .2);
        background: rgba(0, 0, 0, .2);
      }

      &::-webkit-scrollbar-track {
        // 滚动条外层轨道
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, .2);
        border-radius: 10px;
        background: rgba(0, 0, 0, .1);
      }

      .tagsDetail_item {
        width: 100%;
        padding: 0 20px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;

        &:not(:last-child & :first-child) {
          margin: 20px 0;
        }
      }
    }

    .fenye {
      width: 100%;
      border: 1px solid blue;
      margin-top: 10px;
      margin-bottom: 10px;
    }
  }
}
</style>